package portal.action.views;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
@Controller
public class SchedulerViewAction {
	/**************************************调度菜单相关View Start ******************************************/
	@RequestMapping(value="/views/node/list",method=RequestMethod.GET)
	public String nodeList(){
		return "node/nodeList";
	}
	@RequestMapping(value="/views/node/register",method=RequestMethod.GET)
	public String nodeRegister(){
		return "node/nodeRegister";
	}
	@RequestMapping(value="/views/node/group",method=RequestMethod.GET)
	public String nodeGroup(){
		return "node/nodeGroup";
	}
	@RequestMapping(value="/views/node/detail",method=RequestMethod.GET)
	public String nodeDetail(String nodeId,HttpServletRequest req){
		req.setAttribute("nodeId", nodeId);
		return "node/nodeDetail";
	}
	@RequestMapping(value="/views/node/update",method=RequestMethod.GET)
	public String nodeUpdate(String nodeId,HttpServletRequest req){
		return "node/nodeUpdate";
	}
	@RequestMapping(value="/views/node/group/register",method=RequestMethod.GET)
	public String nodeGroupRegister(){
		return "node/nodeGroupRegister";
	}
	@RequestMapping(value="/views/node/group/update",method=RequestMethod.GET)
	public String nodeGroupUpdate(String g,HttpServletRequest req){
		req.setAttribute("g", g);
		return "node/nodeGroupUpdate";
	}
	@RequestMapping(value="/views/gpu/list",method=RequestMethod.GET)
	public String gpuList(){
		return "node/gpuList";
	}
	@RequestMapping(value="/views/gpu/update",method=RequestMethod.GET)
	public String gpuUpdate(String gpuId,HttpServletRequest req){
		req.setAttribute("gpuId", gpuId);
		return "node/gpuUpdate";
	}
	@RequestMapping(value="/views/gpu/register",method=RequestMethod.GET)
	public String gpuUpdate(){

		return "node/gpuRegister";
	}
	@RequestMapping(value="/views/queue/list",method=RequestMethod.GET)
	public String queueList(){
		return "queue/queueList";
	}
	@RequestMapping(value="/views/queue/detail",method=RequestMethod.GET)
	public String queueDetail(String queueId,HttpServletRequest req){
		req.setAttribute("queueId",queueId);
		return "queue/queueDetail";
	}
	@RequestMapping(value="/views/queue/register",method=RequestMethod.GET)
	public String queueRegister(){
		return "queue/queueRegister";
	}
	@RequestMapping(value="/views/queue/update",method=RequestMethod.GET)
	public String queueUpdate(String queueId,HttpServletRequest req){
		req.setAttribute("queueId",queueId);
		return "queue/queueUpdate";
	}
	@RequestMapping(value="/views/queue/nodesetting",method=RequestMethod.GET)
	public String queueNodeSetting(){
		return "queue/queueNodeSetting";
	}
	@RequestMapping(value="/views/job/register",method=RequestMethod.GET)
	public String jobRegister(){
		//req.setAttribute("queueId",queueId);
		return "job/jobRegister";
	}
	@RequestMapping(value="/views/job/list",method=RequestMethod.GET)
	public String jobList(){
		return "job/jobList";
	}

	@RequestMapping(value="/views/job/detail",method=RequestMethod.GET)
	public String jobDetail(String workId ,HttpServletRequest req){
		req.setAttribute("workId", workId );
		return "job/jobDetail";
	}

	@RequestMapping(value="/views/monitor/list",method=RequestMethod.GET)
	public String monitorList(){
		return "monitor/monitorList";
	}
	@RequestMapping(value="/views/monitor/facility/hostDetail",method=RequestMethod.GET)
	public String monitorList(String hostName ,HttpServletRequest req){
		req.setAttribute("hostName", hostName);
		return "monitor/monitorFaclityHostDetail";
	}
	@RequestMapping(value="/views/host/list",method=RequestMethod.GET)
	public String hostList(){
		return "monitor/hostList";
	}
	@RequestMapping(value="/views/host/add",method=RequestMethod.GET)
	public String hostAdd(){
		return "monitor/hostAdd";
	}
	@RequestMapping(value="/views/host/update",method=RequestMethod.GET)
	public String hostUpdate(){
		return "monitor/hostUpdate";
	}
	@RequestMapping(value="/views/host/batchOrder",method=RequestMethod.GET)
	public String hostBatchOrder(){
		return "monitor/hostBatchOrder";
	}
	@RequestMapping(value="/views/host/fileTransfer",method=RequestMethod.GET)
	public String hostFileTransfer(){
		return "monitor/hostFileTransfer";
	}
	@RequestMapping(value="/views/host/viewInstallers",method=RequestMethod.GET)
	public String hostViewInstallers(){
		return "monitor/hostViewInstallers";
	}
	@RequestMapping(value="/views/host/viewProcess",method=RequestMethod.GET)
	public String hostViewProcess(){
		return "monitor/hostViewProcess";
	}
	@RequestMapping(value="/views/host/group",method=RequestMethod.GET)
	public String hostGroupList(){
		return "monitor/hostGroupList";
	}
	@RequestMapping(value="/views/host/group/add",method=RequestMethod.GET)
	public String hostGroupRegister(){
		return "monitor/hostGroupAdd";
	}
	@RequestMapping(value="/views/host/group/update",method=RequestMethod.GET)
	public String hostGroupUpdate(){
		return "monitor/hostGroupUpdate";
	}
	/**************************************调度菜单相关View End******************************************/
}
